package com.i18n;

import java.io.UnsupportedEncodingException;
import java.util.Locale;
import java.util.ResourceBundle;

public class ResourcesBundleTest {
    public static void main(String[] args) throws UnsupportedEncodingException {
        ResourceBundle bundle = ResourceBundle.getBundle("baseName", Locale.CHINA);

        System.out.println(new
                String(bundle.getString("colorName").getBytes("ISO-8859-1"), "GBK"));

    }
}
